<div id="tt-secondary-content">

<h2>Photo Stream <a href="/photos/" class="more">more...</a></h2>


<div class="photos">
	<?php
	
require_once(dirname(__FILE__).'/../../plugins/silaspartners/flickr/class-public.php');
$SilasFlickrPlugin =& new SilasFlickrPlugin();

$photos = $SilasFlickrPlugin->getRecentPhotos('', 0, 40);
shuffle($photos);
?>
<?php foreach (array_slice($photos, 0, 20) as $photo):?>
<a href="/photos/photo/<?php echo $photo['id'];?>/<?php echo $photo['pagename'];?>" class="photo"><img src="<?php echo $photo['sizes']['Square']['source'];?>" width="38" height="38" /></a>
<?php endforeach;?>
    </div>



<br clear="both"/>

<h2>Distractions <a href="/category/links/" class="more">more...</a> &nbsp; <a href="http://feeds.feedburner.com/TanTanDistractions"><img src="http://i.tantannoodles.com/images/feed/12x12.gif" width="12" height="12" title="Distractions feed" border="0" /></a></h2>

<ul class="distractions">
<?php
$myquery = $wp_query;
query_posts('cat=7&showposts=5');?>
<?if (have_posts()): ?>
<?while (have_posts()) : the_post(); ?>
<li><strong><?php the_title();?></strong> <?php the_content()?>
<?php comments_popup_link('#', '#', '#', 'comments', ''); ?>
</li>
<?endwhile;?>

</ul> 
<?endif;
$wp_query = $myquery;


?>

<br clear="both" />
<h2>Featured Music <a href="/category/music-podcast/" class="more">more...</a> &nbsp; <a href="http://feeds.feedburner.com/TanTanMusic"><img src="http://i.tantannoodles.com/images/feed/12x12.gif" width="12" height="12" title="Music feed" border="0" /></a></h2>
<? 
$myquery = $wp_query;
?>
<?php query_posts('cat=30&showposts=3'); ?>

  <?php while (have_posts()) : the_post(); 
  
    $enclosure = get_post_meta($post->ID, 'enclosure', true);
	$thumbnail = get_post_meta($post->ID, 'thumbnail', true);
    $infoClass = '';
    $infoHTML = '';
    if ($enclosure) {
        $mp3 = split("\n", $enclosure);
        if (!$mp3[2] || ($mp3[2] && ereg('audio',$mp3[2]))) {
            $infoHTML = '- Audio MP3, '.round($mp3[1] / 1048576, 1).' MB';
            $infoClass = 'audio';
        }
    }
  ?>	
<div class="tt-entry">
	<a href="<?php the_permalink();?>"><img src="<?php echo $thumbnail;?>" width="32" height="32" /></a>
   <a href="<?php the_permalink() ?>" class="<?=$infoClass?>"><?php the_title() ?></a>
</div>
  <?php endwhile;?>
<?
$wp_query = $myquery;
?>

<br clear="both" />

<h2>Toolkit Updates <a href="/toolkit/" class="more">more...</a>  &nbsp; <a href="http://feeds.feedburner.com/TanTanToolkit"><img src="http://i.tantannoodles.com/images/feed/12x12.gif" width="12" height="12" title="Toolkit feed" border="0" /></a></h2>
<ul class="list-idx">
<?php $query = new WP_Query('cat=11&showposts=3');
while ($query->have_posts()) : $query->the_post();?>
    <li><strong><?php the_title(); ?></strong><small> - <?php the_time('M d Y'); ?> <a href="<?php the_permalink()?>" id="update-<?php the_id()?>">view update &raquo;</a></small>
    <?php /*<div id="desc-<?php the_id();?>" class="description"><?php the_content(); ?></div> */ ?>
    </li>
<?php endwhile; ?>
</ul>

</div>
